export const giftConfig = {
  // 基础配置
  anchorShareRate: 0.7, // 主播分成比例
  platformFee: 0.3, // 平台手续费
  minPrice: 1, // 最低礼物价格
  maxCombo: 99, // 最大连击次数

  // 礼物列表
  gifts: [
    {
      id: 'like',
      name: '点赞',
      price: 1,
      icon: '/gifts/like.png',
      animation: '/animations/like.json',
      minAnchorLevel: 1,
      effect: {
        type: 'simple',
        duration: 3000,
      },
    },
    {
      id: 'flower',
      name: '鲜花',
      price: 10,
      icon: '/gifts/flower.png',
      animation: '/animations/flower.json',
      minAnchorLevel: 1,
      effect: {
        type: 'simple',
        duration: 3000,
      },
    },
    {
      id: 'rocket',
      name: '火箭',
      price: 100,
      icon: '/gifts/rocket.png',
      animation: '/animations/rocket.json',
      minAnchorLevel: 5,
      effect: {
        type: 'advanced',
        duration: 5000,
        sound: '/sounds/rocket.mp3',
      },
    },
    {
      id: 'castle',
      name: '城堡',
      price: 1000,
      icon: '/gifts/castle.png',
      animation: '/animations/castle.json',
      minAnchorLevel: 10,
      effect: {
        type: 'premium',
        duration: 8000,
        sound: '/sounds/castle.mp3',
        fullScreen: true,
      },
    },
    {
      id: 'crown',
      name: '皇冠',
      price: 10000,
      icon: '/gifts/crown.png',
      animation: '/animations/crown.json',
      minAnchorLevel: 20,
      effect: {
        type: 'supreme',
        duration: 10000,
        sound: '/sounds/crown.mp3',
        fullScreen: true,
        shake: true,
      },
    },
  ],

  // 成就系统
  achievements: [
    {
      id: 'first_gift',
      name: '首次赠送',
      description: '首次赠送礼物',
      requirement: 1,
      reward: 100,
      badge: {
        name: '初心',
        icon: '/badges/first_gift.png',
      },
    },
    {
      id: 'gift_master',
      name: '礼物达人',
      description: '累计赠送1000虚拟币',
      requirement: 1000,
      reward: 500,
      badge: {
        name: '慷慨',
        icon: '/badges/gift_master.png',
      },
    },
    {
      id: 'super_fan',
      name: '超级粉丝',
      description: '累计赠送10000虚拟币',
      requirement: 10000,
      reward: 2000,
      badge: {
        name: '土豪',
        icon: '/badges/super_fan.png',
      },
    },
  ],

  // 特效配置
  effects: {
    simple: {
      maxCount: 10, // 同时最大显示数量
      interval: 100, // 显示间隔(毫秒)
    },
    advanced: {
      maxCount: 5,
      interval: 200,
      priority: 1,
    },
    premium: {
      maxCount: 3,
      interval: 300,
      priority: 2,
    },
    supreme: {
      maxCount: 1,
      interval: 500,
      priority: 3,
    },
  },

  // 连击配置
  combo: {
    timeout: 5000, // 连击超时时间(毫秒)
    minCount: 3, // 最小连击次数
    effects: {
      small: {
        // 小连击(3-9次)
        animation: '/animations/combo_small.json',
        sound: '/sounds/combo_small.mp3',
      },
      medium: {
        // 中连击(10-29次)
        animation: '/animations/combo_medium.json',
        sound: '/sounds/combo_medium.mp3',
      },
      large: {
        // 大连击(30-99次)
        animation: '/animations/combo_large.json',
        sound: '/sounds/combo_large.mp3',
      },
    },
  },

  // 历史记录
  history: {
    maxLength: 1000, // 保留最近1000条
    expireTime: 604800, // 保存时间(7天)
  },

  // 排行榜配置
  ranking: {
    maxLength: 50, // 排行榜长度
    updateInterval: 60000, // 更新间隔(毫秒)
    expireTime: {
      daily: 86400, // 日榜过期时间(秒)
      weekly: 604800, // 周榜过期时间(秒)
      monthly: 2592000, // 月榜过期时间(秒)
    },
  },
}
